package ooday05;

public class SecTest {
    public static void main(String[] args) {
        Point p=new Point();
        p.setX(1);
        p.setY(1);
        System.out.println(p.getX()+","+p.getY());

        Season seasons=Season.AUTUMN;

        switch (seasons){
            case SPRING:
                System.out.println("天气"+seasons.getSeasonDescribe()+"出去踏青咯");
                break;
            case SUMMER:
                System.out.println("开空调，看"+seasons.getSeasonDescribe());
                break;
            case AUTUMN:
                System.out.println("天气真"+seasons.getSeasonDescribe()+"去gomaz咯");
                break;
            case WINTER:
                System.out.println(seasons.getSeasonDescribe());
                break;
        }
        Season[] season=Season.values();
        for(int i=0;i<season.length;i++){
            System.out.println(season[i].getSeasonName());
            System.out.println(season[i].getSeasonDescribe());
        }

    }
}
